/**
 * @file Vector.h
 * @author BadFatCat0919 (543015378@qq.com)
 * @brief 矢量类
 */

#ifndef __VECTOR_H__
#define __VECTOR_H__

#include "Coord.h"

/**
 * @brief 矢量
 */
class Vector: public Coord {
public:
    Vector(): Coord(0, 0) {}
    Vector(double x, double y) : Coord(x, y) {}
    double operator^(const Vector &another) const;
    Vector operator*(double num) const;
    double length() const;
    bool operator>(const Vector &another);
    double toward() const;
    double angle(double toward);
    double componentLength(double toward);
};

#endif // __VECTOR_H__
